package model

type Transfee struct {
	TransfeeId      uint        `gorm:"primary_key;AUTO_INCREMENT;" json:"transfeeId"`               //运费项id
	TransportId     uint        `json:"transportId"`                                 //运费模板id
	ContinuousPiece float64     `gorm:"type:decimal(15,2)" json:"continuousPiece"`   //续件数量
	FirstPiece      float64     `gorm:"type:decimal(15,2)" json:"firstPiece"`        //首件数量
	ContinuousFee   float64     `gorm:"type:decimal(15,2)" json:"continuousFee"`     //续件费用
	FirstFee        float64     `gorm:"type:decimal(15,2)" json:"firstFee"`          //首件费用
	CityList        []Transcity `gorm:"many2many:Transfee_CityList" json:"cityList"` //指定条件运费城市项
}

type Transcity struct {
	TranscityId uint `gorm:"primary_key" json:"transcityId"` //id
	//TransfeeId  uint `gorm:"type:bigint(20);references:TransfeeId" json:"transfeeId"`          //运费项id
	CityId uint `gorm:"type:bigint(20);comment:城市id" json:"cityId"` //城市ID
}
